function [backupPathTable1, backupPathTable2] = drawTheBackupPath(primaryPathTable, disp_loc, matrix)
  pr = length(primaryPathTable);
  destination = primaryPathTable(pr);
%   sender = primaryPathTable(1,1);
  backupPathTable1 = zeros(1,1);
  backupPathTable2 = zeros(1,1);
  primaryPath1 = zeros(1,1);
  primaryPath2 = zeros(1,1);
  counter1 = 1;
  counter2 = 1;
  if pr > 2
      for i = 1:pr
          oddEvenNodes = mod(i, 2);
          if oddEvenNodes ~= 0
               primaryPath1(counter1,1) = primaryPathTable(i);
               counter1 = counter1 + 1;
          else
               primaryPath2 (counter2,1)= primaryPathTable(i);
               counter2 = counter2 + 1;
          end
      end  
  end
  %Babar
  A = zeros(2,1);
  if pr > 2      
       [backupPathTable1] = calculateBackupPath(primaryPathTable, primaryPath1, disp_loc, matrix);  
        A(1,:) = calculateBackupPath(primaryPathTable, primaryPath1, disp_loc, matrix);  
       [backupPathTable2] = calculateBackupPath1(primaryPathTable, primaryPath2, backupPathTable1, disp_loc, matrix);
       A(2,:) = calculateBackupPath1(primaryPathTable, primaryPath2, backupPathTable1, disp_loc, matrix);
       
       disp(A);
  else
      [backupPathTable1] = calculateBackupPath(primaryPathTable, primaryPathTable, disp_loc, matrix); 
      backupPathTable2 = 0;
  end
  
  disp('The Backup path =');
  disp(backupPathTable1); 
  disp(backupPathTable2);
  
  threeDim = zeros(3, 3, 2);
  
end